 <%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
       <% int indice=Integer.parseInt(request.getParameter("id")); %>
        
       <h1> <% out.print(indice);%> 
       
       
       </h1>
  
        <form:form commandName="carro" method="post">
           Codigo:  <form:input title="Codigo" path="codigo" value="indice" /><br/>
        Nombre:     <form:input title="Nombre" path="nombre"/><br/>
       Stock:       <form:input title="Stock" path="stock"/><br/>
       Cantidad a pedir: <form:input title="Cantidad" path="cantidad"/><br/>
        <input type="submit" value="Enviar Datos">
       
        </form:form>
    
    
    

    
    
</body>
</html>